<?php
function dt_setup_styles() {
	$theme  = get_theme( get_current_theme() );
	
    wp_register_style(
        'dt_html5reset',
        get_template_directory_uri().'/css/html5reset-1.6.1.css',
        array(),
        '1.6.1'
    );
    
	wp_register_style(
        'dt_style',
        get_template_directory_uri().'/css/style.css',
        array(),
        $theme['Version']
    );
    
	$colour = of_get_option( 'misc_colour_schema_select', 'pink' );
    wp_register_style(
        'dt_skin-' . $colour,
        get_template_directory_uri().'/css/skin-' . $colour . '.css',
        array(),
        $theme['Version']
    );
    
	wp_register_style(
        'dt_slider', 
        get_template_directory_uri().'/css/slider.css',
        array(),
        $theme['Version']
    );
    
	wp_register_style(
        'dt_validator',
        get_template_directory_uri().'/js/plugins/validator/validationEngine.jquery.css',
        array(),
        $theme['Version']
    );
    
	wp_register_style(
        'dt_prettyphoto',
        get_template_directory_uri().'/js/plugins/pf/css/prettyPhoto.css',
        array(),
        $theme['Version']
    );
    
	wp_register_style(
        'dt_custom',
        get_template_directory_uri().'/css/custom.css',
        array(),
        $theme['Version']
    );

    wp_register_style(
        'dt_highslide',
        get_template_directory_uri().'/js/plugins/highslide/highslide.css',
        array(),
        $theme['Version']
    );
    
    wp_register_style(
        'dt_wp',
        get_template_directory_uri().'/css/wp.css',
        array(),
        $theme['Version']
    );
    
    wp_register_style(
        'dt_shortcodes',
        get_template_directory_uri().'/css/shortcodes.css',
        array(),
        $theme['Version']
    );
    
    wp_register_style(
        'dt_like',
        get_template_directory_uri().'/css/like.css',
        array(),
        $theme['Version']
    );
    
    wp_register_style(
        'dt_img_loaded',
        get_template_directory_uri().'/js/plugins/image-loaded/image-loaded.css',
        array(),
        $theme['Version']
    );
    
    // IE7
	wp_register_style(
        'dt_old_ie',
        get_template_directory_uri().'/css/old_ie.css',
        array(),
        $theme['Version'],
        'all'
    );
	$GLOBALS['wp_styles']->add_data( 'dt_old_ie', 'conditional', 'lte IE 7' );
}

add_action( 'wp_enqueue_scripts', 'dt_setup_styles' );